home *** CD-ROM | disk | FTP | other *** search
/ MacWorld Secrets (4th Edition) / Mac Secrets CD 4th Ed.toast / Apple Advanced Technologies / Apple Speech Technologies 1.5 / PlainTalk Developer Info / Speech Recognition Manager SDK / SR Sample Code / IM SR Example / MyIdleCheckForSpeechResult.c < prev    next >
C/C++ Source or Header  |  1996-05-02  |  421b  |  19 lines

  1. #include <SpeechRecognition.h>
  2.  
  3. extern             SRRecognitionResult            gLastRecResult;
  4.  
  5. extern void     MyProcessRecognitionResult (SRRecognitionResult recResult);
  6.  
  7.  
  8. pascal void        MyIdleCheckForSpeechResult (void);
  9.  
  10.  
  11. /* MyIdleCheckForSpeechResult is called from the event loop */
  12. pascal void MyIdleCheckForSpeechResult (void)
  13. {
  14.     if (gLastRecResult != NULL)
  15.         MyProcessRecognitionResult (gLastRecResult);
  16.     
  17.     gLastRecResult = NULL;
  18. }
  19.